package com.milo.java7.codeblock;

/**
 * @author Milo Lee
 * @date 2021-04-23 15:43
 */
public class People {

    {
        System.out.println("父类构造代码块");
    }

    static {
        System.out.println("父类静态代码块");
    }

    public People() {
        System.out.println("父类无参构造方法");
    }
    public People(String str){
        System.out.println("父类含参构造方法");
    }

    public static void main(String[] args) {
        new People();
        System.out.println("==========华丽丽分割线===============");
        new People("麦洛");
    }

}
